package com.ruoyi.manage.mapper;

import java.util.List;

import com.ruoyi.manage.domain.Jurisdiction;
import com.ruoyi.manage.domain.JurisdictionScope;
import org.apache.ibatis.annotations.Param;

/**
 * 辖区范围Mapper接口
 * 
 * @author ruoyi
 * @date 2021-03-04
 */
public interface JurisdictionScopeMapper 
{
    /**
     * 查询辖区范围
     * 
     * @param id 辖区范围ID
     * @return 辖区范围
     */
    public JurisdictionScope selectJurisdictionScopeById(Long id);

    /**
     * 查询辖区范围列表
     * 
     * @param jurisdictionScope 辖区范围
     * @return 辖区范围集合
     */
    public List<JurisdictionScope> selectJurisdictionScopeList(JurisdictionScope jurisdictionScope);

    /**
     * 新增辖区范围
     * 
     * @param jurisdictionScope 辖区范围
     * @return 结果
     */
    public int insertJurisdictionScope(JurisdictionScope jurisdictionScope);

    /**
     * 修改辖区范围
     * 
     * @param jurisdictionScope 辖区范围
     * @return 结果
     */
    public int updateJurisdictionScope(JurisdictionScope jurisdictionScope);

    /**
     * 删除辖区范围
     * 
     * @param id 辖区范围ID
     * @return 结果
     */
    public int deleteJurisdictionScopeById(Long id);

    /**
     * 批量删除辖区范围
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteJurisdictionScopeByIds(Long[] ids);

    /**
     * 根据辖区id删除
     * @param id
     * @return
     */
    int deleteJurisdictionScopeByJurisdictionId(Long id);

    /**
     * 根据辖区id查询
     * @param jurisdictionIds
     * @return
     */
    List<JurisdictionScope> selectJurisdictionScopeListByJurisdictionIds(Long[] jurisdictionIds);

    /**
     * 根据高速，公里数查询
     * @param expresswayName
     * @param kil
     * @return
     */
    List<JurisdictionScope> selectJurisdictionScopeByNameAndKil(@Param("expresswayName") String expresswayName, @Param("kil") String kil);

    /**
     * 查询出辖区
     * @param cityId
     * @param expresswayName
     * @return
     */
    List<Jurisdiction> selectJurisdictionScopeByCityIdAndExpresswayName(@Param("cityId") String cityId, @Param("expresswayName") String expresswayName);
}
